import cinemas from '@/mock/cinemas';
import city from '@/mock/city';
import cinemaDeatil from '@/mock/cinemaDeatil'
// 安装mockjs npm i mockjs
import Mock from 'mockjs';

// 测试： 安装axios npm i axios
// import axios from 'axios'

Mock.mock('/mock/cinemas','get',{code:200,data:cinemas})
Mock.mock('/mock/city','get',{code:200,data:city})
Mock.mock(`/mock/CinemaDetail`,'get',{code:200,data:cinemaDeatil})
// 测试
/* axios.get('/mock/CinemaDetail?cinemaId').then(
  response => {
    console.log(response.data)
  },
  error => {
    alert(error.message)
  }
) */
